﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RWBStorageToSellDetail.aspx.cs" Inherits="Web.Admin.Report.RWBStorageToSellDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../Scripts/WebInner.js" type="text/javascript"></script>
    <script src="../../../Scripts/Common.js" type="text/javascript"></script>
    <link href="../../../Styles/Common.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/Zebra/zebra_dialog.js" type="text/javascript"></script>
    <link href="../../../Scripts/Zebra/zebra_dialog.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
      <script type="text/javascript">
          /*--------窗体启动设置和基本设置--------*/
          /*--loadFuntion--*/
          $(function () {



              var WBID = getQueryString("WBID");

              $.ajax({
                  url: '/Ashx/basicdata.ashx?type=GetNameByID&tableName=WB&ID=' + WBID,
                  type: 'post',
                  data: '',
                  dataType: 'text',
                  success: function (r) {
                      $("#spanWBID").html(r);

                  }, error: function (r) {
                      $("#spanWBID").html(r);
                  }
              });

              var TimeID = getQueryString("TimeID");
              $.ajax({
                  url: '/Ashx/basicdata.ashx?type=GetNameByID&tableName=StorageTime&ID=' + TimeID,
                  type: 'post',
                  data: '',
                  dataType: 'text',
                  success: function (r) {
                      $("#spanTimeID").html(r);

                  }, error: function (r) {
                      $("#spanTimeID").html(r);
                  }
              });
              var VarietyID = getQueryString("VarietyID");
              $.ajax({
                  url: '/Ashx/basicdata.ashx?type=GetStorageVarietyNameByID&ID=' + VarietyID,
                  type: 'post',
                  data: '',
                  dataType: 'text',
                  success: function (r) {
                      $("#spanVarietyID").html(r);

                  }, error: function (r) {
                      $("#spanVarietyID").html(r);
                  }
              });
              var dtBegin = getQueryString("dtBegin");
              $("#spandtBegin").html(dtBegin);
              var dtEnd = getQueryString("dtEnd");
              $("#spandtEnd").html(dtEnd);


          });

          function FunBack() {
              history.back(-1);
          }

          function GetNameByID(url) {
              $.ajax({
                  url: url,
                  type: 'post',
                  data: '',
                  dataType: 'text',
                  success: function (r) {

                      return r;

                  }, error: function (r) {
                      return r;
                  }
              });
          }


      </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="pageHead">
       <b>储户存转销详细信息列表</b><a href="#"  onclick="FunBack();">返回</a>
       <%-- <span id="spanHelp" style="cursor: pointer">帮助</span>--%>
    </div>
    <div id="divHelp"  class="pageHelp">
<span>提示1：各种查询可以独使用，也可以联合使用，但必须保证至少有一项查询条件。</span><br />
<span>提示2：每项查询均为模糊查询条件，为保证查找信息的正确性，请输入完整的查询信息。</span><br />

</div>
    
<div id="storageQuery">

</div>
    <div style="margin: 20px 0px;">
        <div id="Query">
           <table style="background-color:#cdf; margin:5px;" >
           <tr>
          <%--  <td style="width:100px; text-align:right">交易类型:</td>
           <td><span id="spanTradeWBID"></span></td>--%>
           <td style="width:100px; text-align:right">网点:</td>
           <td><span id="spanWBID"></span></td>
            <td style="width:100px; text-align:right">商品类型:</td>
           <td><span id="spanTimeID"></span></td>
            <td style="width:100px; text-align:right">存粮类型:</td>
           <td><span id="spanVarietyID"></span></td>
            <td style="width:100px; text-align:right">开始时间:</td>
           <td><span id="spandtBegin"></span></td>
            <td style="width:100px; text-align:right">结束时间:</td>
           <td><span id="spandtEnd"></span></td>
           </tr>
           </table>
        </div>
        
        <div id="StorageList" style="margin:20px 0px">
       <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <table class="tabData" >
                    <tr class="tr_head">
                        <th style="width: 150px; height:20px; text-align: center;">
                            储户网点
                        </th>
                         <th style="width: 150px; height:20px; text-align: center;">
                            交易网点
                        </th>
                         <th style="width: 100px; text-align: center;">
                            储户账号
                        </th>
                        <th style="width: 100px; text-align: center;">
                            储户姓名
                        </th>
                         <th style="width: 100px; text-align: center;">
                            存期
                        </th>
                        <th style="width: 100px; text-align: center;">
                            产品
                        </th>
                        <th style="width: 100px; text-align: center;">
                            交易量
                        </th>
                        <th style="width: 100px; text-align: center;">
                            结算价
                        </th>
                        <th style="width: 100px; text-align: center;">
                            利息
                        </th>
                         <th style="width: 100px; text-align: center;">
                            保管费
                        </th>
                        <th style="width: 150px; text-align: center;">
                            结算金额
                        </th>
                       
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr style='background-color: <%#(Container.ItemIndex%2==0)?"#FFFFF;":"#fcf3f4"%>'
                    onmouseover="change_colorOver(this)" onmouseout="change_colorOut(this)">
                   <td style="height:25px;">
                     
                        <%#Eval("WBName")%>
                    </td>
                    <td>
                        <%#Eval("TradeWBName")%>
                    </td>
                     <td>
                        <%#Eval("Dep_ID")%>
                    </td>
                     <td>
                        <%#Eval("Dep_Name")%>
                    </td>
                    <td>
                        <%#Eval("TimeName")%>
                    </td>
                    <td>
                        <%#Eval("VarietyName")%>
                    </td>
                    <td>
                        <%#Eval("VarietyCount")%>
                    </td>
                    <td>
                        <%#Eval("Price_ShiChang")%>
                    </td>
                    <td>
                        ￥<%#(Eval("VarietyInterest"))%>
                    </td>
                    <td>
                        ￥<%#Eval("StorageMoney")%>
                    </td>
                     <td>
                        ￥<%#Eval("VarietyMoney")%>
                    </td>
                    
                </tr>
            </ItemTemplate>
            <FooterTemplate>
           
                <!--底部模板-->
                </table>
                <!--表格结束部分-->
            </FooterTemplate>
        </asp:Repeater>
        </div>
       
    </div>
    
    <div  style="display:none;">
      <%--选择兑换的存储产品信息--%>
     <input type="text" name="txtDep_SID" value="" />

    </div>
    </form>
    
    <%--定义编号--%>
    <input type="hidden" id="WBID" value="" />
    <%--定义背景色的隐藏域--%>
    <input type="hidden" id="colorName" value="" />
</body>
</html>
